#include "udp_client.hpp"
#include <memory>

void Usage(const char *command)
{
    std::cout << "\nClient Usage# " << command << " ip port\n" << std::endl;
}

int main(int argc, const char **argv)
{
    if(argc != 3)
    {
        Usage(argv[0]);
        exit(1);
    }

    std::unique_ptr<Client> ptr_cli(new Client(argv[1], atoi(argv[2])));
    ptr_cli->init();
    ptr_cli->start();

    return 0;
}